import request from '@/utils/request'

// 查询费用分摊规则配置列表
export function listFeeSharingRuleConfig(query) {
  return request({
    url: '/config/feeSharingRuleConfig/list',
    method: 'get',
    params: query
  })
}

// 查询费用分摊规则配置详细
export function getFeeSharingRuleConfig(id) {
  return request({
    url: '/config/feeSharingRuleConfig/' + id,
    method: 'get'
  })
}

// 保存费用分摊规则配置
export function saveFeeSharingRuleConfig(data) {
  return request({
    url: '/config/feeSharingRuleConfig/save',
    method: 'post',
    data: data
  })
}

// 删除费用分摊规则配置
export function delFeeSharingRuleConfig(id) {
  return request({
    url: '/config/feeSharingRuleConfig/' + id,
    method: 'delete'
  })
}

// 导出费用分摊规则配置
export function exportFeeSharingRuleConfig(query) {
  return request({
    url: '/config/feeSharingRuleConfig/export',
    method: 'get',
    params: query
  })
}

// 查询费用分摊规则列表
export function getData() {
  return request({
    url: '/config/feeSharingRuleConfig/getData',
    method: 'get'
  })
}
